package cool.lichuan.project.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cool.lichuan.common.domain.UserDetail;
import cool.lichuan.project.system.domain.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author lichuan
 * @date 2021/11/24 16:07
 * @description
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户id查询用户信息(包括部门信息及角色信息)
     * @param userId 用户id
     * @return 用户信息信息
     */
    UserDetail selectUserDetailById(@Param("userId") Long userId);
}